<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Api\Model;
use Think\Model\ViewModel;

/**
 * 小哥模型层
 * derek <693472824@qq.com>
 */
class WorkerViewModel extends ViewModel {

    protected $viewFields = array(
            
        'Worker'   =>  array(
                            'worker_id', 'account', 'password', 'name', 'eid', 'id_number', 'job', 'profession', 'sex', 'birthday',
                            'score', 'orders_sum', 'avg_hour', 'site_id', 'att_id', 'member_type', 'status', 'work_year',
                            'description',
                            '_type'=>'LEFT'
        ),
            
        'Attachment'    =>  array(
                            'fullpath',
                            '_on'=>'Worker.att_id = Attachment.att_id'
                
        )
    );
}